This example shows how to add items to print dialogs. It’s essentially the code in Tech Note PR09, only in C. Note that in v1.0.2, a bug was corrected which is also in the Tech Note.
- Dave Hersey
Apple Developer Technical Support
10/9/91… v1.0
2/25/92… v1.0.1 --> fixed lack of print handle tossing and added something to print.
9/29/93… v1.0.2 --> fixed a problem with the Append_DITL routine which caused an
extra 2 bytes of garbage to be appended to the DITL.
6/20/95… v1.0.3 --> updated for Universal Headers and MWC-PPC <njvt>
11/16/95 v1.0.4 --> updated to use CallPItemProc() and PItemUPP. Make it fully ANSI.
Explicitly include needed headers, so back-port to MPW is easier. <davep>
6/10/96… v1.1 --> Probably shoulda bumped to 1.1 at 1.0.4, but better late than never.
Update version resources, and make the buttonn we add open another dialog with yet more stuff in it. Added balloon help to demonstrate how that works, too.
• NOTE: To append help for the items you're appending to the print dialog, you have to use a 'HMScanAppendhdlg' item. This type isn't readily available from Resorcerer or ResEdit, so that's why I switched to Rez source for the resources. <davep>